{extend name="public:base"/}


{block name="title"}编辑供应商{/block}
{block name="style"}{/block}

{block name="main"}

<section class="content" xmlns="http://www.w3.org/1999/html">
    <div class="row">

        <div class="col-md-12">

            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <div class="box-header with-border">
                            <h3 class="box-title">编辑供应商</h3>
                        </div>
                        <form  id="pt_form" method="post">
                            <div class="box-body">

                                <input type="hidden" name="suppliers_id" value="<?=$model['suppliers_id']?>" ?>
                                <div class="clearfix"></div>

     
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="suppliers_name" class="control-label Validform_label" >供应商名称</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="suppliers_name" class="form-control" name="suppliers_name" placeholder="请输入供应商名称" value="<?=$model['suppliers_name']?>" datatype="s2-255"  errormsg="供应商名称超出长度范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="suppliers_desc" class="control-label Validform_label" >供应商描述</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="suppliers_desc" class="form-control" name="suppliers_desc" placeholder="请输入供应商描述" value="<?=$model['suppliers_desc']?>" datatype="*" errormsg="供应商描述超出范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="suppliers_contacts" class="control-label Validform_label" >供应商名字</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="suppliers_contacts" class="form-control" name="suppliers_contacts" placeholder="请输入供应商名字" value="<?=$model['suppliers_contacts']?>" datatype="s2-255" errormsg="供应商名字超出长度范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="suppliers_phone" class="control-label Validform_label" >供应商电话</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="suppliers_phone" class="form-control" name="suppliers_phone" placeholder="请输入供应商电话" value="<?=$model['suppliers_phone']?>" datatype="m" errormsg="供应商电话格式不正确">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group ">
                                    <div class="col-sm-2 text-right">
                                        <label class="control-label Validform_label">供应商状态                                        </label>
                                    </div>

                                    <div class="col-sm-10">
                                        <div>
                                      
                                            <span style="color:#636f7a"><input type="radio" name="is_check" value="0" datatype="*"  nullmsg="请选择供应商状态" <?=$model['is_hot'] == 0?'checked="checked"':''?>>否</span>

                                            
                                            <span style="color:#636f7a"><input type="radio" name="is_check" value="1" <?=$model['is_hot'] == 1?'checked="checked"':''?>>是</span>

                                                                                    </div>
                                        <div class="help-block"></div>
                                    </div>
                                </div>


                            </div>
                            <div class="box-footer text-center">
                                <button class="btn btn-primary" type="submit">保存</button>
                                <span class="btn btn-white" onclick="history.go(-1)">返回</span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
{/block}

{block name="js"}
<script>

    var validate = validator('#pt_form');
    
</script>
{/block}